﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace CalendarScreenSaver
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            
            if (e.Args.Length > 0)
            {
                string arg1 = e.Args[0].ToLower().Substring(0, 2);
                switch (arg1)
                {
                    case "/s":
                        break;
                    case "/p":
                        break;
                    case "/c":
                        SettingsWindow win = new SettingsWindow();
                        win.ShowDialog();
                        break;
                    default:
                        break;
                }                
            }
            else
            {

            }

            //MainWindow winM = new MainWindow();
            //winM.ShowDialog();
            //base.OnStartup(e);
        }
    }
}
